package com.jzhao.gper.combination;

public class Test {
    public static void main(String[] args) {
        Trunk fosun =  new Trunk("复星集团",1);
        Tree it = new Branch("复星_IT");
        Tree cw = new Branch("复星_财务");
        Tree hr = new Branch("复星_HR");
        fosun.addSub(it);
        fosun.addSub(cw);
        fosun.addSub(hr);

        Trunk yiyao =  new Trunk("复星医药",2);
        Tree yyIt = new Branch("YY_IT");
        Tree yyCW = new Branch("YY_财务");
        Tree yyHR = new Branch("YY_HR");
        yiyao.addSub(yyIt);
        yiyao.addSub(yyCW);
        yiyao.addSub(yyHR);
        fosun.addSub(yiyao);

        Trunk yuyuan =  new Trunk("豫园股份",2);
        Trunk yuyuanIt = new Trunk("yuyuan_IT",3);
        Tree yuyuanItJAVA= new Branch("yuyuan_IT_JAVA");
        Tree yuyuanItPthoy= new Branch("yuyuan_IT_PTHOY");
        yuyuanIt.addSub(yuyuanItJAVA);
        yuyuanIt.addSub(yuyuanItPthoy);
        Tree yuyuanCW = new Branch("yuyuan_财务");
        Tree yuyuanHR = new Branch("yuyuan_HR");
        yuyuan.addSub(yuyuanIt);
        yuyuan.addSub(yuyuanCW);
        yuyuan.addSub(yuyuanHR);

        fosun.addSub(yuyuan);
        fosun.getFullPath();
    }
}
